<?php
function process(&$req){
     switch($req['do']){
	     //category related cases
          case 'acat':
               break;
          case 'icat':
               break;
          case 'ecat':
               break;
          case 'ucat':
               break;
          case 'rcat':
               break;
          case 'cat':
               break;
          case 'scat':
               break;
          default:
               $req['do'] = 'scat';
               process(&$req)
               break;
          //end of category related cases
      }
      return $html;
  }
  ?>